package com.itheima.chapter11.tcp.case2;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class Server {
    public static void main(String[] args) throws IOException {
        ServerSocket server =new ServerSocket(9998);
        System.out.println("服务端开启，等待客户端链接...");
        while(true){
            //响应客户发送的请求
            Socket socket =server.accept();
           new Thread(new submitFileTask(socket)).start();

        }

    }
}
